<%@page import="java.util.TreeMap"%>
<%@page import="models.PageModel"%>
<%@page import="java.net.URLEncoder"%>
<%@page import="helpers.DateHelper"%>
<%@page import="models.NewsModel"%>
<%@page import="java.util.ArrayList"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="models.SiteConfigModel"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
TreeMap check = (TreeMap) request.getAttribute("check");
TreeMap values = (TreeMap) request.getAttribute("values");
SiteConfigModel siteConfig = (SiteConfigModel) request.getAttribute("config");
String image = "";//UrlHelper.getServerUrl(request) + "/blobstore-serve?blob-key=" + siteConfig.getLogo();
String name = (String) request.getAttribute("name");
PageModel static_page =(PageModel) request.getAttribute("static_page");
%>

<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=siteConfig.getTitle()%>" />
    <jsp:param name="description" value="<%=siteConfig.getMetaDescription()%>" />
    <jsp:param name="keywords" value="<%=siteConfig.getMetaKeywords()%>" />
    <jsp:param name="ogsite_name" value="<%=siteConfig.getSiteName()%>" />
    <jsp:param name="ogtitle" value="<%=siteConfig.getTitle()%>" />
    <jsp:param name="ogurl" value="<%=UrlHelper.getServerUrl(request)%>" />
    <jsp:param name="ogimage" value="<%=image %>" />
    <jsp:param name="ogdescription" value="<%=siteConfig.getMetaDescription()%>" />
</jsp:include>
<script type="text/javascript" src="/js/home.js"></script>
			<div class="block-content">
				<!-- STATIC PAGE -->
				<div class="column-block">
					<div class="block-column-2">
						<div class="static-block">
							<div class="contact-us">
								<h2>Contact Us</h2>
								<form action="" method="post">
								<table width="100%" cellpadding="0" cellspacing="0">
									<tbody>
										<tr>
											<td width="30%" class="name">
												Your name
											</td>
											<td>
												<input type="text" name="name" value="<%=values.get("name") != null ? values.get("name") : "" %>">
												<br />
												<% if (check.get("name") != null ) { %>
												<span class="error"><%=check.get("name") %></span>
												<% } %>
											</td>
										</tr>
										<tr>
											<td>
												Your email
											</td>
											<td>
												<input type="text" name="email" value="<%=values.get("email") != null ? values.get("email") : "" %>">
												<br />
												<% if (check.get("email") != null ) { %>
												<span class="error"><%=check.get("email") %></span>
												<% } %>
											</td>
										</tr>
										<tr>
											<td>
												Message
											</td>
											<td>
												<textarea rows="5" cols="40" name="content" ><%=values.get("content") != null ? values.get("content") : "" %></textarea>
												<br />
												<% if (check.get("content") != null ) { %>
												<span class="error"><%=check.get("content") %></span>
												<% } %>
											</td>
										</tr>
										<tr>
											<td>ReCaptcha</td>
											<td>
												<div >
												<% if (check.get("captcha") != null) { %>
													<div class="error"><%=check.get("captcha")%></div>
												<% } %>
												<script>
										        	var RecaptchaOptions = { theme : 'clean' };
										  		</script>
												<script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LeA0c4SAAAAAMsdjrB49GPol6XImTdJM2U2AHrF"></script>
												</div>
											</td>
										</tr>
									</tbody>
									<tfoot>
										<tr>
											<td></td>
											<td>
												<button type="submit">Send</button>
											</td>
										</tr>
									</tfoot>
								</table>
								</form>
							</div>
						</div>
					</div>
					<div class="block-column-1">
						<div class="sidebar-block">
							<div style="display: table-cell; height: 300px; width: 317px; text-align: center; vertical-align: middle;">
								<h1>Adv</h1>
							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
				<!-- END STATIC PAGE -->
			</div>

<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>	